﻿#region Using declarations

    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    using System.Xml.Linq;

    using Csla;

    using MarketPulse.BusinessLogic.Core;

#endregion

namespace MarketPulse.BusinessLogic.Common
{
    [Serializable]
    [Csla.Server.ObjectFactory("MarketPulse.DataAccess.Factory.AreaFactory, MarketPulse.DataAccess.Factory", "FetchInfoList")]
    public class AreaInfoList : MarketPulseReadOnlyListBase<AreaInfoList, AreaInfo>
    {
        #region Constructor(s)

            /// <summary>
            /// Default constructor is private in order to (try to) enforce construction
            /// only via the static factory methods provided.
            /// </summary>
            private AreaInfoList()
            { 
            }

        #endregion

            #region Methods

                #region Factory Methods

                    /// <summary>
                    /// Method used to 
                    /// </summary>
                    /// <param name="countryGUID"></param>
                    /// <returns></returns>
                    public static AreaInfoList GetByCountryGUID(System.Guid countryGUID)
                    {
                        return DataPortal.Fetch<AreaInfoList>(new SingleCriteria<Guid>(countryGUID));
                    }

                #endregion

            #endregion

    }
}